
//获取应用实例
const app = getApp()
Page({
  data: {
    versionList: [],
  },
  requestData:function(){
    var that = this;
    wx.request({
      url: app.appSetting.host + "weixin/GetVersions",
      data: {
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success: function (res) {
        console.log(res);
        if (res.data.Status == 0) {
          that.setData({
            versionList: res.data.Result
          });
        } else {
          app.showMsg(res.data.Message);
        }

      }
    })
  },

  onLoad: function () {
    this.requestData();

  },
  onShow: function () {

  },



})
